/*
 * Copyright (c) 2019，2039, daojian.co and/or its affiliates. All rights reserved.
 *
 */

package co.bugu.code.analysis.infra.entity;

import co.bugu.framework.db.Entity;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 实体类，和数据库一一对应
 *
 *
 *
 * @author coder helper
 * @version 1.0.0
 * @createdAt 2022-11-21 11:05
 * @updatedAt 2022-11-21 11:05
 */
@ApiModel("代码差异记录")
@Data
@Entity
public class Diff {
	@ApiModelProperty("主键")
	private Long id;
	@ApiModelProperty("提交ID")
	private String commitId;
	@ApiModelProperty("是否删除文件")
	private Integer deletedFile;
	@ApiModelProperty("差异内容")
	private String diff;
	@ApiModelProperty("是否新增文件")
	private Integer newFile;
	@ApiModelProperty("新路径")
	private String newPath;
	@ApiModelProperty("旧路径")
	private String oldPath;
	@ApiModelProperty("是否重命名文件")
	private Integer renamedFile;
	@ApiModelProperty("添加行数")
	private Integer additions;
	@ApiModelProperty("删除行数")
	private Integer deletions;
	@ApiModelProperty("提交时间")
	private Date committedDate;
	@ApiModelProperty("分支名称")
	private String branchName;
	@ApiModelProperty("是否删除，0未删除，1已删除")
	private Integer isDel;
	@ApiModelProperty("创建人姓名（ID）")
	private String createUser;
	@ApiModelProperty("更新人姓名（ID）")
	private String updateUser;
	@ApiModelProperty("创建时间")
	private Date createTime;
	@ApiModelProperty("更新时间")
	private Date updateTime;

}
